﻿using EYangFramework.Common.BasicHelper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace EYangFramework.Common.Logger
{
    public class CustomLogInfo
    {
        public DateTime CreateTime { get; set; }
        public string CreateUser { get; set; }
        public string LogLevel { get; set; }
        public string CustomMessage { get; set; }
        public string UserIP { get; set; }

        public CustomLogInfo(LogLevel logLevel,string user,string message)
        {
            this.CreateTime = DateTime.Now;
            this.CreateUser = user;
            this.LogLevel = logLevel.ToString();
            this.CustomMessage = message;
            this.UserIP = new ComputerInfo().GetIPAddress();
        }
    }
}
